﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using AAA.Meta.Chart;

namespace AAA.Chart.Indicator
{
    public class Volume : DefaultIndicator
    {
        public Volume()
        {
            ChartStyle = ChartStyleEnum.Histogram;
            DataField = DataTypeEnum.Volume;
            Name = "Volume";
            CustomYMin = 0;
        }

        public override void Calculate()
        {
            Plot(DataSource.GetData(BaseStudy).GetData(DataField),
                 Name, Color.Yellow, Color.Yellow, 1);
        }
    }
}
